package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

/**
 * 商家类别实体类
 */
@Table(name = "c_shop_category")
public class ShopCategory implements Serializable{

    @Id
    @Column(name = "shop_category_id", length = 64)
    private String shopCategoryId= UUID.randomUUID().toString();//主键;

    @Column(name = "shop_category_name", length = 20)
    private String shopCategoryName;//名称

    @Column(name = "shop_category_sort", length = 11)
    private Integer shopCategorySort=0;//排序

    @Column(name = "shop_category_status", length = 11)
    private Integer shopCategoryStatus=0;//状态值：启用--0，-1禁用

    @Column(name = "shop_category_del", length = 11)
    private Integer shopCategoryDel=0;//逻辑删除：0 默认，-1删除

    @Column(name = "create_time", length = 20)
    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    @Column(name = "del_time", length = 20)
    private String delTime;//删除时间   

    @Column(name = "update_time", length = 20)
    private String updateTime;//修改时间

    public String getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(String shopCategoryId) {
        this.shopCategoryId = shopCategoryId == null ? null : shopCategoryId.trim();
    }

    public String getShopCategoryName() {
        return shopCategoryName;
    }

    public void setShopCategoryName(String shopCategoryName) {
        this.shopCategoryName = shopCategoryName == null ? null : shopCategoryName.trim();
    }

    public Integer getShopCategorySort() {
        return shopCategorySort;
    }

    public void setShopCategorySort(Integer shopCategorySort) {
        this.shopCategorySort = shopCategorySort;
    }

    public Integer getShopCategoryStatus() {
        return shopCategoryStatus;
    }

    public void setShopCategoryStatus(Integer shopCategoryStatus) {
        this.shopCategoryStatus = shopCategoryStatus;
    }

    public Integer getShopCategoryDel() {
        return shopCategoryDel;
    }

    public void setShopCategoryDel(Integer shopCategoryDel) {
        this.shopCategoryDel = shopCategoryDel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}